package cci.pojo;

public class Personne {

	private int id ;
	private String nom ;
	private String prenom ;
	
	public Personne() {
		id = 0 ;
		nom = null ;
		prenom = null ;
	}

	public Personne(int id, String nom, String prenom) {
		this.id = id;
		this.nom = nom;
		this.prenom = prenom;
	}

	public Personne(String nom, String prenom) {
		id = 0 ;
		this.nom = nom;
		this.prenom = prenom;
	}

	public synchronized int getId() {
		return id;
	}

	public synchronized void setId(int id) {
		this.id = id;
	}

	public synchronized String getNom() {
		return nom;
	}

	public synchronized void setNom(String nom) {
		this.nom = nom;
	}

	public synchronized String getPrenom() {
		return prenom;
	}

	public synchronized void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	@Override
	public String toString() {
		return "Personne [id=" + id + ", nom=" + nom + ", prenom=" + prenom + "]";
	}

}
